Silverlight 4.0: How to display byte[] back to pdf or video

Posted by xscape on Stack Overflow See other posts from Stack Overflow or by xscape
Published on 2010-03-15T09:30:26Z Indexed on 2010/03/15 9:39 UTC
Read the original article Hit count: 226

byte[] mediaBytes = Convert.FromBase64String(base64String);
MemoryStream ms = new MemoryStream(mediaBytes , 0, mediaBytes.Length);

Is there a way to convert back the byte[] to its original format? (pdf or video)

© Stack Overflow or respective owner

Related posts about silverlight-4.0

Related posts about stream